<?php

class Application_Model_DbTable_Words extends Zend_Db_Table_Abstract {

    protected $_name = 'words';
	
	
    public function getWord($word,$robotId){
        $row = $this->fetchRow("word='".$word."' AND robotId =  '".$robotId."'");
        return $row;
	}
		
	public function createWord($word,$robotId){
		$row = $this->createRow();
		$row->word = $word;
		$row->robotId = $robotId;
		$row->save();
		return $row;
	}
}
